package com.wangjie.pattern.template;

public class JavaCourse extends AbstractCourse {
    private boolean needCheckHomework = false;

    public void setNeedCheckHomework(boolean needCheckHomework) {
        this.needCheckHomework = needCheckHomework;
    }

    @Override
    boolean needCheckHomework() {
        return this.needCheckHomework;
    }

    @Override
    void checkHomework() {
        System.out.println("检查Java作业...");
    }
}